package com.ynny.chapter09.controller;

import com.ynny.chapter09.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/add")
    public String save(@RequestBody User user){

        System.out.println(user);

        return "suc";
    }
}
